/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.dao;

import java.io.Serializable;
import java.util.List;
import javax.persistence.EntityManager;
import model.dao.exceptions.NonexistentEntityException;
import model.pojo.Aluno;

/**
 *
 * @author leonidia
 */
public interface AlunoInterface extends Serializable {

    void create(Aluno aluno);

    void destroy(Integer id) throws NonexistentEntityException;

    void edit(Aluno aluno) throws NonexistentEntityException, Exception;

    boolean existeAluno(String cpf);

    Aluno findAluno(Integer id);

    List<Aluno> findAlunoEntities();

    List<Aluno> findAlunoEntities(int maxResults, int firstResult);

    int getAlunoCount();

    EntityManager getEntityManager();
    
}
